package com.wmh.baseservice.merchant.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wmh.baseservice.common.mybatisplus.methods.CommonService;
import com.wmh.baseservice.merchant.pojo.MerchantVegetablePlot;
import com.wmh.baseservice.user.pojo.vo.PlotSearch;

import java.util.Map;

/**
 * @author wmh generator
 * @since 2021-12-24
 */
public interface MerchantVegetablePlotService extends CommonService<MerchantVegetablePlot> {

    /**
     * 获取土地列表
     */
    IPage<MerchantVegetablePlot> getVegetablePlotList(Page<MerchantVegetablePlot> vegetablePagePlot, Map<String, Object> map);

    /**
     * 用户端-土地列表
     */
    IPage<MerchantVegetablePlot> usPlotList(Page<MerchantVegetablePlot> vegetablePage, Map<String, Object> map);

    
    /**
     * 土地详情
     */
    MerchantVegetablePlot plotDetail(Map<String, Object> map);

    /**
     * 获取商家
     */
    Long getMerchantId(Long id);

    /**
     * 附近好地搜索
     */
    IPage<PlotSearch> searchList(Page<PlotSearch> page, Map<String, Object> map);
}
